package com.hhkj.study.admin.teacher.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BizBaseEntity;
import com.ruoyi.common.valid.VAdd;
import com.ruoyi.common.valid.VEdit;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
*
* @author SERVER
* @since 2024-09-06
*/
@TableName(value = "x_teacher")
@EqualsAndHashCode(callSuper = true)
@Data
public class Teacher extends BizBaseEntity {

	/**
	 * 姓名
	*/
	@NotBlank(message = "姓名不能为空", groups = VAdd.class)
	private String name;
	/**
	 * 标签,多个用|隔开
	*/
	private String tags;
	/**
	 * 学历
	*/
	@NotBlank(message = "学历不能为空", groups = VAdd.class)
	private String academic;
	/**
	 * 介绍
	*/
	@NotBlank(message = "介绍不能为空", groups = VAdd.class)
	@Size(max = 300, message = "字符长度不能超过300", groups = {VAdd.class, VEdit.class})
	private String introduce;
	/**
	 * 头像
	*/
	@NotBlank(message = "头像不能为空", groups = VAdd.class)
	private String avatarPicUrl;
	/**
	 * 是否推荐首页0-否1-是
	*/
	private Integer recommendFlag;

	/**
	 * 排序序号
	 */
	private Integer orderNum;

}